package com.zhouyer.edu.dao;

import com.zhouyer.edu.pojo.Account;

/**
 * 银行转账 Dao层接口
 *
 * @author zhouyer
 */
public interface AccountDao {
    /**
     * 根据账户卡号查询账户信息
     *
     * @param cardNo 账户卡号
     * @return
     * @throws Exception
     */
    Account queryAccountByCardNo(String cardNo) throws Exception;

    /**
     * 更新账户信息
     *
     * @param account 账户信息实体
     * @return
     * @throws Exception
     */
    int updateAccountByCardNo(Account account) throws Exception;
}
